import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'energy',
    component: () => import('../views/energyConsumption.vue')
  },
  {
    path: '/fq1',
    name: 'fq1',
    component: () => import('../views/fq1.vue')
  },
  {
    path: '/his1',
    name: 'his1',
    component: () => import(/* webpackChunkName: "his1" */ '../views/histogramo.vue')
  },
  {
    path: '/his2',
    name: 'his2',
    component: () => import(/* webpackChunkName: "his2" */ '../views/histogramt.vue')
  },
  {
    path: '/number',
    name: 'number',
    component: () => import(/* webpackChunkName: "number" */ '../views/numberOfFloors.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
